package com.fengxing.ams.pub.util;

import org.apache.commons.configuration.Configuration;

import com.fengxing.ams.pub.constants.ConfigurationID;

public class ErrorDescUtil {

	private static Configuration config;

	static {
		config = ResourceUtil.loadProps(ConfigurationID.ERROR_CODE_CONFIG);
	}

	public static String getDescByCode(Long code) {
		return config.getString(code.toString());
	}

}
